
#ifndef SYMBOL_H
#define SYMBOL_H

#include "type.h"
#include <stdio.h>

struct symbol {
	int kind;
	int which;
	struct type *type;
        char * name;
	int isDefined;
};

struct symbol * symbol_create ( 
  int kind, 
  int which, 
  struct type * type,
  char * name,
  int isDefined
);


char *   symbol_code ( struct symbol *s );
void     symbol_print( struct symbol  * symbol  ); //INC



#define SYMBOL_KIND_NAME	0
#define SYMBOL_KIND_LOCAL	1
#define SYMBOL_KIND_PARAM	2
#define SYMBOL_KIND_GLOBAL	3

#endif
